package com.service;

import com.entity.Group;
import com.entity.GroupUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XTC
 * @since 2024-07-10
 */
public interface GroupUserService extends IService<GroupUser> {
    List<User> getAllUserOfGroup(Integer groupId);

    boolean addMasterToGroup(Group group);

    boolean addUserToGroupByApplyId(Integer applyId);

    boolean addUsersToGroup(Integer groupId, List<Integer> userIdList);

    List<Group> getAllJoinedGroup(Integer userId);

    List<Group> getAllJoinedGroupByName(Integer userId, String name);

}
